﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuEmpresaLinhaParada.aspx.cs"
    Inherits="VemTransporte.Views.UsuarioEmpresa.MenuEmpresaLinhaParada" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/menuEmpresa_files/css3menu1/style.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 225px;
        }
        
        .failureNotification
        {
            font-size: 0.9em;
            color: Red;
        }
        .style2
        {
            width: 4%;
        }
    </style>
</head>
<body id="corpo2">
    <!-- Div Topo Inicio -->
    <div id="topo">
        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresa.aspx">
        <div id="logoTopo"></div>
        </asp:HyperLink>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/LoginEmpresa.aspx">
        <div id="sair"></div>
        </asp:HyperLink>
    </div>
    <form id="form1" runat="server" style="margin-top: 30px;">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="ImageEmpresaLogoTipo" runat="server" Height="138px" Width="137px"
                                ImageUrl="~/Content/Imagens/default_logo.jpg" />
                            <br />
                            <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresaLogoTipo.aspx">Alterar Logotipo</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Bem vindo," Font-Bold="True" ForeColor="#000099"></asp:Label>
                            <br />
                            <asp:Label ID="LabelNomeEmpresa" runat="server" Text="Label" Font-Bold="True" ForeColor="#000099"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <ul id="css3menu1" runat="server" class="topmenu">
                                <li runat="server" class="topfirst" id="liMenuEmpresaCadastro"><a href="MenuEmpresaCadastrar.aspx"
                                    title="Alterar Dados Empresa" style="width: 206px;">Alterar Dados Empresa</a></li>
                                <li runat="server" id="liMenuCadastroInicialEmpresa"><a href="CadastroInicialEmpresa.aspx"
                                    title="Cadastro de Empresa" style="width: 206px;">Cadastrar Empresa</a></li>
                                <li runat="server" id="liMenuAlterarEndEmpresa"><a href="MenuEmpresaEndereco.aspx"
                                    title="Alterar Endereço" style="width: 206px;">Alterar Endereço</a></li>
                                <li runat="server" id="liMenuCadastrarTelefones"><a href="MenuEmpresaTelefones.aspx"
                                    title="Cadastrar Telefones" style="width: 206px;">Cadastrar Telefones</a></li>
                                <li runat="server" id="liMenuAlterarSenhaEmpresa"><a href="MenuEmpresaAlterarSenha.aspx"
                                    title="Alterar Senha" style="width: 206px;">Alterar Senha</a></li>
                                <li runat="server" id="liMenuAlterarLinhaEmpresa"><a href="MenuEmpresaLinha.aspx"
                                    title="Cadastro de Linhas" style="width: 206px;">Cadastro de Linhas</a></li>
                                <li runat="server" id="liMenuCadastroParadaEmpresa"><a href="MenuEmpresaParada.aspx"
                                    title="Cadastro de Paradas" style="width: 206px;">Cadastro de Paradas</a></li>
                                <li runat="server" id="liMenuHoraLinhaEmpresa"><a href="MenuEmpresaHorario.aspx"
                                    title="Cadastro de Horarios das Linhas" style="width: 206px;">Cadastro de Horarios
                                    das Linhas</a></li>
                                <li runat="server" id="liMenuEmpresaVeiculo"><a href="MenuEmpresaCadastroVeiculo.aspx"
                                    title="Cadastro de Veículos" style="width: 206px;">Cadastro Veículos</a></li>
                                <li runat="server" id="liMenuEmpresaLinhaParada"><a href="MenuEmpresaLinhaParada.aspx"
                                    title="Cadastro de Linha/Parada" style="width: 206px;">Cadastro de Linha/Parada</a></li>
                            </ul>
                            <p>
                                &nbsp;</p>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 90%">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <div>
                    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
                        <ProgressTemplate>
                            <asp:Image ID="ImageLinha" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <br />
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="LabelProcurarLinha" runat="server" Font-Names="verdana" Font-Size="12px"
                                ForeColor="#203360" Text="Digite o código da Linha:"></asp:Label>
                            &nbsp;<asp:TextBox ID="TextBoxNumeroLinha" runat="server" Height="30px" Width="320px"></asp:TextBox>
                            &nbsp;<asp:Button ID="ButtonProcurarLinha" runat="server" Height="30px" OnClick="ButtonProcurarLinha_Click"
                                Text="Procurar" Width="93px" BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White" />
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxNumeroLinha"
                                CssClass="field-validation-error" ErrorMessage="Digite o código da Linha!" ValidationGroup="ValidationSummary1"></asp:RequiredFieldValidator>
                            <br />
                            <span class="failureNotification">
                                <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                            </span>
                            <br />
                            <asp:Label ID="LabelNomeLinha" runat="server" BackColor="Red"></asp:Label>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <table style="width: 100%;">
                            <tr>
                                <td class="style1">
                                    <asp:Label ID="LabelParaNumero0" runat="server" Font-Names="verdana" Font-Size="12px"
                                        ForeColor="#203360" Text="Informe o Numero da Parada:">
                                    </asp:Label>
                                    &nbsp;
                                </td>
                                <td align="" rowspan="3">
                                    <asp:Button ID="ButtonCadastrarParada" runat="server" Height="30px" OnClick="ButtonCadastrarParada_Click"
                                        Text="Cadastrar" Width="93px" BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    <asp:TextBox ID="TextBoxNumero" runat="server" Height="30px" Width="171px">
                                    </asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxNumero"
                                        CssClass="field-validation-error" ErrorMessage="Digite o numero da Parada!" ValidationGroup="ValidationSummary1">
                                    </asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <asp:GridView ID="GridViewParada" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            CellPadding="4" EmptyDataText="Nenhuma parada cadastrada!" OnPageIndexChanging="GridViewParada_PageIndexChanging"
                            OnRowCommand="GridViewParada_RowCommand" OnRowDataBound="GridViewParada_RowDataBound"
                            OnRowDeleting="GridViewParada_RowDeleting" OnRowEditing="GridViewParada_RowEditing"
                            Width="626px" ForeColor="#333333" GridLines="None" OnRowUpdated="GridViewParada_RowUpdated"
                            OnRowUpdating="GridViewParada_RowUpdating">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:BoundField DataField="Numero" HeaderText="Número">
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Latitude" HeaderText="Latitude">
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Longitude" HeaderText="Longitude">
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButtonExcluir" runat="server" CommandName="excluir" ImageUrl="~/Content/Imagens/DeleteRed.png" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </form>
    <hr style="color: #ccc" />
    <center style="color: #999; font-size: 12px;">
        Vem Tranporte - Sistema de Trasnporte Inteligente - 2011
    </center>
    <br />
</body>
</html>
